package com.nine.pattern.adapter.class_adapter;

/**
 * @author nine
 * @version 1.0
 * @description 类适配器，违反了合成复用原则。类适配器是客户类有一个接口规范的情况下可用，如果没有就没法使用
 * @date 2024-07-08 22:00
 */
public class SDAdapterTF extends TFCardImpl implements SDCard {
	@Override
	public String readSD() {
		System.out.println("adapter read tf card");
		return readTF();
	}

	@Override
	public void writeSD(String msg) {
		System.out.println("adapter write tf card");
		writeTF(msg);
	}
}
